# -*- coding:utf-8 -*-
class Solution:
    def reOrderArray(self, array):
        odd = []
        even = []
        for i in array:
        	if(i%2 == 0):
        		even.append(i)
        	else:
        		odd.append(i)
        return odd+even

h = Solution()
print(h.reOrderArray([1,2,3,4]))